package com.zzxy.spring34.po;

import java.util.List;

public class Student {
    private String name;

    private String no;

    private Integer age;

    private Address address;

    /*List Set Array Map Properties*/
    private List<String> cars;
    public List<String> getCars(){
        return cars;
    }
    public void setCars(List<String> cars) {
        this.cars = cars;
    }
    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Student(){}

    public Student(String name,String no){
        this.name=name;
        this.no=no;
    }
    public Student(String name,Integer age){
        this.name=name;
        this.age=age;
    }

    public Student(String name, Integer age, String no) {
        this.name=name;
        this.age=age;
        this.no=no;
    }

    public Student(String s) {
    }

    @Override
    public String toString(){
        return "Student{" +
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", age=" + age +
                ", address=" + address +
                ", cars=" + cars +
                '}';
    }
    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getNo(){
        return no;
    }

    public void setNo(String name){
        this.no = no;
    }

    public Integer getAge(){
        return age;
    }

    public void setAge(Integer age){

    }

}
